package com.kaishengit.service;

import java.util.List;



import com.kaishengit.dao.FileDao;
import com.kaishengit.entity.File;

import com.kaishengit.util.StringUtil;
import com.kaishengit.util.db.Page;


public class FileService {
	
	private FileDao dao = new FileDao();
	
	public void save(File file){
		file.setId(StringUtil.getId());
		
		dao.save(file);

}
	
	public  List<File> findAll(){
		 
		return dao.findAll();
		}
	public File findById(String id){
		return dao.findById(id);
	}

	public Page<File> findByPage(String filetypeid ,int pageNum) {
		
		return dao.findByPage(filetypeid,pageNum);
	}

	

	
	
	
}